package 第四次;

public class AnimalBehavior {
public  static void main(String[] arg) {
	Meow m=new Cat();
	System.out.println("--------");
	Animal a1=new Cat();
	a1.setName("小花");
	System.out.println(a1.getName());
	Food food=new Fish();
	a1.eat(food);
	m.Meow();
	Circle c=new Dog();
	System.out.println("--------");
	Animal a2=new Dog();
	a2.setName("旺财");
	System.out.println(a2.getName());
	//Food food=new Bone();
	a2.eat(food);
	c.Circle();
	
}
}
